-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add slide animation for ActionPanel #110
Conversation
Preview is ready. |
src/components/ActionPanel/hooks.ts
Outdated
|
||
React.useEffect(() => { | ||
if (!enable) { | ||
element?.removeEventListener('transitionend', transitionHandler); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me it looks strange because you remove listeners not inside useEffect
return function
@flops in general you can use react-transition-group because uikit use it |
b0fc692
to
a1955c6
Compare
a1955c6
to
ba5eec1
Compare
@@ -325,6 +325,29 @@ type MenuItem = { | |||
DashKit.setSettings({menu: [] as Array<MenuItem>}); | |||
``` | |||
|
|||
| Name | Description | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some caption? Like CSS Api. And would be good to add some recommendations how to use it.
Animations example:
Screen.Recording.2024-01-30.at.21.46.12.mov